Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI-1227: Implement PHP 8 attributes #1642

Merged
merged 12 commits into from
Nov 28, 2023
Merged

Conversation

danepowell
Copy link
Contributor

@danepowell danepowell commented Nov 28, 2023

I wanted to more radically strip configure() into attributes, but it turns out Symfony doesn't support that natively. The goal of AsCommand is only to replace static properties like the name and description, not all of the possible methods in configure().

Drush accomplishes this using consolidation annotated commands. It's a work of art, but I'd rather stick with pure Symfony patterns for now.

Copy link

codecov bot commented Nov 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ef27522) 91.96% compared to head (b7ac970) 91.80%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1642      +/-   ##
============================================
- Coverage     91.96%   91.80%   -0.17%     
+ Complexity     1820     1776      -44     
============================================
  Files           124      122       -2     
  Lines          6513     6381     -132     
============================================
- Hits           5990     5858     -132     
  Misses          523      523              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danepowell danepowell marked this pull request as ready for review November 28, 2023 18:48
@danepowell danepowell merged commit 928c361 into acquia:main Nov 28, 2023
12 checks passed
@danepowell danepowell deleted the CLI-1227 branch September 20, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant